package com.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
//import io.swagger.annotations.ApiModel;
//import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.util.List;

/**
 * @ClassName: Area
 * @Description:
 * @Version: v1.0.0
 * @Author: Fu Hao
 * @Date: 2021/6/26 0026 上午 10:57
 * Modification History:
 * Date           Author      Version     Description
 * -------------------------------------------------------------
 * 2021/6/26 0026        Fu Hao      v1.0.0         创建
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Builder(toBuilder = true)
@TableName("t_area")
@EqualsAndHashCode(callSuper = true)
//@ApiModel(value = "(t_area)实体类", description = "(t_area)实体类")
public class Area extends BaseEntity {
    private static final Long serialVersionUID = -14216400471825395L;
    /**
     * 区域编码  街道没有独有的adCode，均继承父类（区县）的adCode
     */
    @TableField(value = "ad_code")
    //@ApiModelProperty(value = "区域编码  街道没有独有的adCode，均继承父类（区县）的adCode", notes = "区域编码  街道没有独有的adCode，均继承父类（区县）的adCode")
    private String adCode;

    /**
     * 父级id
     */
    @TableField(value = "parent_code")
   // @ApiModelProperty(value = "父级id", notes = "父级id")
    private String parentCode;

    /**
     * 名称
     */
    @TableField(value = "name_")
   // @ApiModelProperty(value = "名称", notes = "名称")
    private String name;

    /**
     * 城市编码
     */
    @TableField(value = "city_code")
    //@ApiModelProperty(value = "城市编码", notes = "城市编码")
    private String cityCode;

    /**
     * 等级  国家 省 市 区/县
     */
    @TableField(value = "type_")
    //@ApiModelProperty(value = "等级  国家 省 市 区/县", notes = "等级  国家 省 市 区/县")
    private String level;


    /**
     * 经度，纬度
     */
    @TableField(value = "center")
   // @ApiModelProperty(value = "经度，纬度", notes = "经度，纬度")
    private String center;

    /**
     * 子节点
     */
    @TableField(exist = false)
    private List<Area> districts;

    @TableField(exist = false)
    private List<Area> childrenList;
}
